package com.kcht.sylyg08.dao.impl;

import com.kcht.adp.common.log.Logger;
import com.kcht.adp.common.sql.JPAConfig;
import com.kcht.sylyg08.dao.DataSourceBaseDao;
import com.kcht.sylyg08.dao.IContainerHistoricalStatusDao;
import com.kcth.sylyg08.entity.ContainerHistoricalStatus;

import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;

/**
  *
  * @Package:        com.kcht.sylyg08.dao.impl
  * @Description:     java类作用描述
  * @Author:         lenovo
  * @CreateDate:     2019/5/15 14:10
 */
@Singleton
@Startup
@JPAConfig(dynaSqlFile = "mapper/containerStatusRecordQueryMapper.xml")
public class ContainerHistoricalStatusDao extends DataSourceBaseDao<ContainerHistoricalStatus,Long> implements IContainerHistoricalStatusDao {
    @Inject
    private Logger log;

    @Override
    public ContainerHistoricalStatus getByContainerId(String containerId){
        return this.selectOneByJPQL("select a from ContainerHistoricalStatus a where a.containerId=?",containerId);
    }
}
